#-*- coding: utf8 -*-
from tutor.scripts import *
from tutor.plugins.sympy import *

# Entradas
with display_block('Entradas'):
    var = oneof(x, y)
    a = (One * oneof(1, 2, 3, 4)) / oneof(1, 2, 3)
    b = (One * oneof(1, 2, 3, 4)) / oneof(1, 2, 3)
    poly = x**a * y**b
    other_var = set([x,y])
    other_var.remove(var)
    other_var = other_var.pop()
assert a != b

# Escolhas
with display_block('Escolhas'):
    correta = poly.integrate([var, 0, 1])
    dis_1 = poly.integrate(var)
    dis_2 = poly.integrate(other_var)
    dis_3 = poly.integrate([other_var, 0, 1])
    dis_4 = poly.integrate(var).integrate(other_var)
    dis_5 = poly.integrate([var, 0, 1]).integrate([other_var, 0, 1])
    dis_6 = dis_5 * other_var **a
    dis_7 = dis_5 * other_var **b

